<template>
  <div class="form_item-">

    <template v-if="!is_info">
      <input type="hidden" :name="name" :value="value">
    </template>
  </div>
</template>

<script>
export default {
  _title_: '',
  props: {
    modelValue: [Array, String],
    config: {
      type: [Array, Object, String],
      _label_: '限制模型',
      _tip_: '允许选择的模型列表，多个逗号分隔，默认为全部',
      _inputType_: 'text_more'
    }
  },
  emits: ['update:modelValue', 'change'],
  data(){
    return {
      need_display: true,
      this_value: this.modelValue,
    }
  },
  methods: {
    update_value(v){
      this.need_display = false;
      setTimeout(()=>{this.need_display = true;},5);
      this.$emit('update:modelValue', v);
      this.$emit('change', v);
    },
  },
  watch: {
    value(){
      if (!this.need_display) return;
      this.this_value = this.modelValue;
    }
  },
  computed: {
  },
}
</script>

<style scoped>

</style>